<fieldset class="layui-elem-field">
    <legend>添加驾驶员</legend>
    <div class="layui-field-box">
        <form action="{:url('Drivemanage/adddrive')}" class="layui-form ajax-form" method="post"
              style="margin: 20px">
            <div class="layui-row">
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">驾驶员名称</label>
                            <div class="layui-input-inline">
                                <input type="text" name="drive_name" placeholder="请输入名称" value="" maxlength="20"
                                       autocomplete="off" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                    </div>
                    <!--<div class="layui-form-item">-->
                        <!--<label class="layui-form-label">头像</label>-->
                        <!--<div class="layui-input-inline">-->
                            <!--<button type="button" class="layui-btn upload" required>-->
                                <!--<i class="layui-icon"></i>上传头像-->
                            <!--</button>-->
                        <!--</div>-->
                    <!--</div>-->

                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">身份证号</label>
                            <div class="layui-input-inline">
                                <input type="text" name="drive_card" placeholder="请输入身份证号" value="" maxlength="20"
                                       autocomplete="off" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">电话</label>
                            <div class="layui-input-inline">
                                <input type="text" name="drive_tel" placeholder="请输入电话" value="" maxlength="20"
                                       autocomplete="off" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-inline">
                            <select name="drive_sex" lay-filter="aihao" lay-verify="required">
                                <option value="">请选择</option>
                                <option value="1">男</option>
                                <option value="2">女</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">所属公司</label>
                        <div class="layui-input-inline">
                            <select name="store_id" lay-filter="selectId" lay-verify="required">
                                <option value="">公司名称</option>
                                {volist name="store" id="s"}
                                <option value="{$s.store_id}">{$s.store_name}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">薪酬方式</label>
                        <div class="layui-input-inline">
                            <select name="drive_money" lay-filter="aihao" lay-verify="required">
                                <option value="">请选择</option>
                                <option value="1">啦啦</option>
                                <option value="2">嘿嘿</option>
                                <option value="3">呵呵</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">司机类型</label>
                        <div class="layui-input-inline">
                            <select name="drive_type" lay-filter="aihao" lay-verify="required">
                                <option value="">请选择</option>
                                <option value="1">全职</option>
                                <option value="2">兼职</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">驾驶员等级</label>
                        <div class="layui-input-inline">
                            <select name="drivelevel_id" lay-filter="selectId" lay-verify="required">
                                <option value="">等级名称</option>
                                {volist name="level" id="l"}
                                <option value="{$l.driving_licence_id}">{$l.drive_level}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">驾驶证正面照</label>
                        <div class="layui-input-inline">
                            <button type="button" class="layui-btn upload" required>
                                <i class="layui-icon"></i>上传驾驶证正面照
                            </button>
                        </div>
                    </div>
                    <div class="layui-form-item uploadDiv" style="display: none;margin-left: 110px">
                        <img src="" class="uploadImg" width="100">
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">驾驶证反面照</label>
                        <div class="layui-input-inline">
                            <button type="button" class="layui-btn uploadz" required>
                                <i class="layui-icon"></i>上传驾驶证反面照
                            </button>
                        </div>
                    </div>
                    <div class="layui-form-item uploadDivz" style="display: none;margin-left: 110px">
                        <img src="" class="uploadImgz" width="100">
                    </div>
                </div>
            </div>
            <div class="layui-form-item ">
                <label class="layui-form-label"> </label>
                <button class="layui-btn" lay-submit="">确定</button>
                <a class="layui-btn  layui-btn-primary" href="{:url('Drivemanage/platformdrive')}">返回</a>
            </div>
        </form>
    </div>
</fieldset>

